package com.chat.demo.userservice.DTO.FriendShip;

import com.chat.demo.userservice.Entity.Entity.FriendRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class FriendApplyDTO extends FriendRequest {
    String senderName;

    public FriendApplyDTO(FriendRequest request, String senderName) {
        this.setSenderId(request.getSenderId());
        this.setRecipientId(request.getRecipientId());
        this.setRequestId(request.getRequestId());
        this.setCreatedAt(request.getCreatedAt());
        this.senderName = senderName;
    }
}